import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("file")
export class FileEntity {
  @PrimaryGeneratedColumn("uuid")
  id: number;

  @Column({ name: "name", type: "varchar", comment: "文件名", unique: true })
  name: string;

  @Column({ name: "create_time", type: "datetime", comment: "文件创建时间" })
  createTime: string;

  @Column({ name: "use_type", type: "varchar", comment: "文件使用类型:avatar" })
  useType: string;

  @Column({ name: "file_type", type: "varchar", comment: "文件类型" })
  type: string;


  @Column({ name: "path", type: "varchar", comment: "文件路径" })
  path: string;

  @Column({ name: "status", type: "int", comment: "文件状态:0-文件被删除，1-文件正常" })
  status: number;
}